﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SCResources.BusinissLayer;
using SCResources.General;
using Serie_Counter.Presentatie.GuiHelpers;

namespace Serie_Counter.Presentatie
{
    public partial class ArchiveForm : Form
    {
        private SCResources.BusinissLayer.ScResources manager;
        private UserControlHelper uCHelper;
        private updateForm updateForm;

        public UserControlHelper UCHelper
        {
            get
            {
                return uCHelper;
            }
        }

        public ArchiveForm(SCResources.BusinissLayer.ScResources manager, updateForm updateForm)
        {
            InitializeComponent();
            this.manager = manager;
            this.updateForm = updateForm;

            uCHelper = new UserControlHelper(panelSeries,SelectedCollection.Archived,manager,updateForm);
            uCHelper.placeUserControls();
        }

        private void buttonAdd_Click(object sender, EventArgs e)
        {
           // SerieForm aS = new SerieForm(manager,SelectedCollection.Archived);
            //aS.ShowDialog();
            uCHelper.placeUserControls();
        }

        private void ArchiveForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            manager.saveCurrentContent();
        }
    }
}
